//
//  RootViewController.h
//  GXWN
//
//  Created by iMacOne on 15/11/5.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "General.h"
@interface RootViewController : UIViewController<UITextFieldDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>
@property UIViewController* fromControl;// 从哪个界面进来的(这个属性有时候需要手动清空)
@property RootViewController* backControl;// 从哪个界面退出来的(这个属性有时候需要手动清空)
@property (nonatomic, strong) UILabel *lblTopTitle;// 顶部的正标题
@property (nonatomic, strong) NSMutableDictionary *fromMap;// 进入界面时的参数, map不允许为空
@property RedirectType redirectType;// 界面跳转的类型

@property (nonatomic, strong)NSMutableArray * dataArray;
#pragma mark 请求TCK服务器
#pragma _partUrl 接口路径，只需要后面一截
#pragma _param 参数，多个参数用&隔开
#pragma _callback 回调函数的block
#pragma loading_type 进度条的类型
#pragma is_backup 是否需要备份数据(一般查询的数据需要备份，提交的数据不需要)
#pragma is_solveFail 调用接口失败时，是否内部处理错误
#pragma _frequency 调用接口的频率(单位：秒)，及时调接口，就传入0
- (void)requestTck:(NSString*)_partUrl _param:(NSString*)_param _callback:(ResponseCallback)callback loading_type:(LoadingType)loading_type is_backup:(BOOL)is_backup is_solveFail:(BOOL)is_solveFail _frequency:(int)_frequency;

#pragma mark 界面跳转
- (void)jump:(NSString*)fromText to:(RootViewController*)toVC;

- (void)doBack:(UIButton*)btnBack;

#pragma mark 在底部弹出一个黑色的提示条
- (void)prompt:(NSString*)msg;

#pragma mark 创建标题栏, 返回下一个view的y值
- (int)createTitle:(NSString*)title midTitle:(NSString *)midTitle;

// 传图上片 {cut:'200',upload:true}
- (void)showUploadImg:(NSString*)param;
- (void)uploadImageAfter:(id)object;

#pragma mark 处理扫描结果
- (void)scannerResult:(NSString*)result;
//创建一个一个的线性按钮
- (NSDictionary *)createLineButton:(UIScrollView *)scrollView dataDic:(NSDictionary *)dataDic last_y:(float)last_y;
@end
